#include "MainEntrance.h"

vector<XMLObjectUser*>MainEntrance::XMLOU;
LoginManager* LoginManager::instance = nullptr;
MainEntrance* MainEntrance::instance = nullptr;

int MainEntrance::num = 0;
int MainEntrance::index = 0;

int main() 
{
	MainEntrance::addXMLObjectUser(new XMLObjectUser);
	MainEntrance::addXMLObjectUser(new XMLObjectUser);

	MainEntrance::getSubObject()->islogin();
	MainEntrance::getSubObject()->login(new UserAndPassword("xml","123456"));
	MainEntrance::getSubObject()->islogin();
	MainEntrance::getSubObject()->login(new PhoneAndPassword("18888", "123456"));
	MainEntrance::getSubObject()->islogin();
	return 1;
}